module.exports = {
  // webpack的配置自定义路径
  configureWebpack: {
    resolve: {
      alias: {
        views: "@/views",
        components: "@/components",
        network: "@/network",
        common: "@/common",
        router: "@/router",
        assets: "@/assets",
      },
    },
  },
  //反向代码解决跨域问题
  devServer: {
    proxy: {
      "/api2": {
        target: "http://localhost:3000",
        changeOrigin: true,
      },
      "/api": {
        target: "http://39.97.33.178",
        changeOrigin: true,
      },
    },
  },
  // 修改访问静态资源路径
  // publicPath:'/miaomiao'
};
